package com.broada.apm.ajax;

import java.util.List;
import java.util.Map;

import com.broada.apm.entity.IPLocation;
import com.broada.apm.entity.ThresholdType;
import com.broada.apm.es.bean.ClusterInfo;
import com.broada.apm.model.L7Module;
import com.broada.apm.model.User;
import com.broada.apm.model.Dimension.Area;
import com.broada.apm.model.Dimension.Error;

public class ConfigResult extends Result {

	/**
	 * @Fields serialVersionUID :
	 */

	private static final long serialVersionUID = 1L;

	public void setConfigData(Map<String, Object> configData) {
		this.put("configData", configData);
	}

	public void setNowTime(String dateStr){
		this.put("nowtime", dateStr);
	}
	
	public void setArea(List<Area> areas){
		this.put("area", areas);
	}
	public void setIpAreas(List<IPLocation> locations){
		this.put("IpAreas", locations);
	}
	
	public void setModules(List<L7Module> modules){
		this.put("modules", modules);
	}
	
	public void setCodeArr(List<Error> listError){
		this.put("codeArr", listError);
	}
	
	public void setDiskData(ClusterInfo cluster){
		this.put("diskData", cluster);
	}
	
	public void setApdexT(float apdex_t){
		this.put("apdex_t", apdex_t);
	}
	
	public void setThresholds(List<ThresholdType> thresholds){
		this.put("result", thresholds);
	}
	
	public void setUser(User user){
		this.put("user", user);
	}
}
